/**
 * Created by alan on 2017/5/5.
 * 数据字典
 */
Ext.define('Admin.view.waterDispath.DictController', {
  extend: 'Ext.app.ViewController',
  alias: 'controller.dictController',

  init: function() {

  },

  //steps下一步
  check: function() {
    var dictGrid = this.lookupReference('dictGrid');
    var store  = dictGrid.getStore();
    var type = this.lookupReference('type').getValue();
    var description = this.lookupReference('description').getValue();
    store.getProxy().extraParams = {type: type,description:description,river:config.RIVER};
    store.reload();
  },

  add: function(){
	  Ext.create('Ext.window.Window', {
	    title: '字典添加',
	    height: 350,
	    width: 600,
//	    modal:true,
	    layout: 'fit',
	    items: {  // Let's put an empty grid in just to illustrate fit layout
	        xtype: 'dictAdd',
	        border: false
	    }
	}).show();
  },

})
